package org.nobject.common.swing.g;

import java.awt.Container;
import java.awt.Graphics;

import javax.swing.JComboBox;

/**
 * GComboBox
 *
 * @author bianrongjun
 * @version 1.0
 */
public class GComboBox extends JComboBox implements IG{

	/**
	 * 构造函数 
	 * @param items
	 */
	public GComboBox(Object[] items) {
		super(items);
		this.core=new GComponent();
	}
	
	/**
	 * 构造函数 
	 * @param items
	 */
	public GComboBox(Container container, Object[] items) {
		super(items);
		this.core=new GComponent();
		if(container!=null) container.add(this);
	}
	
	/**
	 * 构造函数 
	 * @param container
	 */
	public GComboBox(Container container) {
		super();
		this.core=new GComponent();
		if(container!=null) container.add(this);
	}
	
	/** GComponent */
	private GComponent core;
	public GComponent getGCore() {return core;}
	
	
	public void paintChildren(Graphics g) {core.paintChildren(g);super.paintChildren(g);}
}
